﻿using System;
using System.Collections.Generic;
using System.Text;
using PowerOBIProvider.OBI;
using System.Management.Automation;

namespace PowerOBIProvider
{
    public class PSOBIDriveInfo : PSDriveInfo
    {

        private String server;
        public String Server
        {
            get
            {
                return server;
            }
            set
            {
                server = value;
            }
        }
        private String username;
        public String Username
        {
            get
            {
                return username;
            }
            set
            {
                username = value;
            }
        }
        private String password;
        public String Password
        {
            set
            {
                server = value;
            }
        }

        private OBIWebServiceClient obiWSClient = null;
        public OBIWebServiceClient ObiWSClient
        {
            get
            {
                return obiWSClient;
            }
        }
        public PSOBIDriveInfo(PSDriveInfo mDriveInfo, string mServer, string mUser, string mPasswd)
            : base(mDriveInfo)
        {
            server = mServer;
            username = mUser;
            password = mPasswd;
            obiWSClient = new OBIWebServiceClient(server);
            obiWSClient.Connect(username, password);

        }


    }    
}
